package com.example.buildtable.pojo;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(autoResultMap = true)
public class LoginLog {
    @TableId(type = IdType.AUTO)
    private Integer loginId;
    private String loginContent;
    @TableField(value = "oper_user_id", target = User.class)
    private Integer operUserId;
    @TableField(relation = Relation.MANY_TO_MANY)
    private User user;
    private String ipAddress;
    private String deviceType;
    private Integer status;
    private Integer loginTake;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    private String remark;
}
